<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'artist-project-form',
	'enableAjaxValidation'=>false,
        'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'image_file'); ?>
                <?php echo CHtml::activeFileField($model, 'image_file_1'); ?>
		<?php echo $form->error($model,'image_file_1'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'image_file_2'); ?>
                <?php echo CHtml::activeFileField($model, 'image_file_2'); ?>
		<?php echo $form->error($model,'image_file_2'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'image_file_3'); ?>
                <?php echo CHtml::activeFileField($model, 'image_file_3'); ?>
		<?php echo $form->error($model,'image_file_3'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'image_file_4'); ?>
                <?php echo CHtml::activeFileField($model, 'image_file_4'); ?>
		<?php echo $form->error($model,'image_file_4'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'image_file_5'); ?>
                <?php echo CHtml::activeFileField($model, 'image_file_5'); ?>
		<?php echo $form->error($model,'image_file_5'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row">
            <?php
                $artist_array = CHtml::listData(Artist::model()->findAll(), "id", "name");
                ?>
                <?php echo $form->labelEx($model,'artist'); ?>
                <?php echo $form->listBox($model,'artist',$artist_array); ?>
                <?php echo $form->error($model,'artist'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'tag'); ?>
		<?php echo $form->textField($model,'tag',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'tag'); ?>
	</div>
    <div class="row">
            <?php
                $home_array = CHtml::listData(Home::model()->findAll(), "id", "name");
                ?>
                <?php echo $form->labelEx($model,'home_show'); ?>
                <?php echo $form->checkBox($model,'home_show',$home_array); ?>
                <?php echo $form->error($model,'home_show'); ?>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->